<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>修改检修</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script type="text/javascript" src="./js/jquery.js"></script>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row">
        <form class="layui-form">
            <div class="layui-row">
                <form class="layui-form">
                    <div class="layui-form-item" hidden="hidden">
                        <label for="oStaffId" class="layui-form-label">
                            <span class="x-red">*</span>
                        </label>
                        <div class="layui-input-inline">
                            <input type="number" id="oStaffId" name="oStaffId" autocomplete="off" required lay-verify="id"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item" hidden="hidden">
                        <label for="oInfraId" class="layui-form-label">
                            <span class="x-red">*</span>
                        </label>
                        <div class="layui-input-inline">
                            <input type="number" id="oInfraId" name="oInfraId" autocomplete="off" required lay-verify="id"
                                   class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="oStartDate" class="layui-form-label">
                            检修开始日期
                        </label>
                        <div class="layui-input-inline">
                            <input type="date" id="oStartDate" name="oStartDate" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="oEndDate" class="layui-form-label">
                            检修结束日期
                        </label>
                        <div class="layui-input-inline">
                            <input type="date" id="oEndDate" name="oEndDate" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            检修状态
                        </label>
                        <div class="layui-input-inline">
                            <select name="oStatus">
                                <option></option>
                                <option name="select" value=1>通过</option>
                                <option name="select" value=2>未通过</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="oNotes" class="layui-form-label">
                            备注
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="oNotes" name="oNotes" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="L_repass" class="layui-form-label"></label>
                        <button id="L_repass" class="layui-btn" lay-filter="add" lay-submit="" type="button">
                            修改
                        </button>
                    </div>
                </form>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="js/common/DataModify.js"></script>
<script type="text/javascript" src="./js/common/ajaxUse.js"></script>
<script>
    layui.use(['form', 'layer'],
        function() {
            $ = layui.jquery;
            var form = layui.form,
                layer = layui.layer;
            //自定义验证规则
            form.verify({
                id:[/\d+/,'编号只能为正整数'],
            });
            //监听提交
            form.on('submit(add)',
                function () {
                    submitModify('/Overhaul/updateOverhaul', getUpdate(3));
                });

        });
</script>
</body>
</html>
